home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Education / PC-SiG's World of Education.iso / wor / disk0682.zip / PCT3.ZIP / SMPDC2.PCT (.txt) < prev    next >
PC-Type Document  |  1991-01-08  |  9KB  |  261 lines

  1. PC-Type+
  2. sample multiple document file
  3. %                .LEVEL_A \\OHNT TOC\
  4.                 .LEVEL_B \\HNT TOC\
  5.                 .LEVEL_C \HNT TOC\
  6.                 .LEVEL_D \ NT TOC
  7.                 .LEVEL_E \ NT TOC
  8.                 .HDR_LABEL "Chapter" "Section" "Figure" "Table"
  9.                 .LEVEL_FORCE 0.0.0.0 0 0
  10.                 \\\\
  11.                 \\\\
  12.                 \\\\
  13.                 even \Page %\\Multiple File Documentation\
  14.                 odd \.<rhf2HN{- }T>\\Page %\
  15.                 \\.<->\\
  16.                 \\\\
  17.                 \\\\
  18.                 \\.<->\\
  19.                 swap \\\.<rhl1HN{- }T>\
  20.                 \\\\
  21.                 \\\\
  22. d0010Description of Text File
  23.                 This text file is the beginning of the body of the
  24.                 document.  Normally there would be a number of such
  25.                 files, but for the 
  26. tutorial, we have limited it to
  27. Tutorial
  28.                 one.
  29. d0120Headings
  30.                 An inordinate number of 
  31. headings has been placed in
  32. Headings
  33.                 this file to facilitate seeing how the 
  34. Table of
  35. Table of Contents
  36.                 Contents get constructed.
  37. d0120Page Numbers
  38.                 Since this is the first file in the body of the
  39.                 document, and since we wanted to go from page numbers
  40.                 represented by 
  41. Roman Numerals to normal page numbers,
  42. Roman Numerals
  43.                 we started this file with the 
  44. Absolute page break line
  45. Absolute page break \\ Page break (absolute)
  46.                 set to page number 1.  Normally there would not be a
  47.                 page break at the top of a 
  48. Multiple Document file
  49. Multiple document file
  50.                 unless you want to force an 
  51. ODD page and there is no
  52. ODD page \\ Page (odd)
  53.                 heading at the beginning of the text which supports
  54.                 starting at an ODD page.
  55. d0120Footers
  56.                 Also notice that footers have been turned back on so
  57.                 that they will print.
  58. d0120Parameter Duplication
  59.                 The 
  60. .LEVEL_n lines and 
  61. .HDR_LABEL line between the
  62. .HDR_LABEL
  63. .LEVEL_n
  64.                 Document Dflts 
  65. Special Lines are duplicated here
  66. Special lines
  67.                 exactly as they occur in the 
  68. Master file.  This is
  69. Master file
  70.                 handy if you later make some minor changes to the file
  71.                 (which will not alter the page numbering) and want to
  72.                 print out this file only.  For this reason the
  73.                 
  74. .LEVEL_FORCE parameter line has also been included.
  75. .LEVEL_FORCE
  76. d0230Print One of Many Files
  77.                 You would print this single file by setting the 
  78. Print
  79. Print mode
  80.                 mode option of the Print Options window to "
  81. STD" and
  82.                 then pressing F10.
  83. d0230Parameters Inside Document File
  84.                 If you print a Multiple File Document with the 
  85. Print
  86. Print mode
  87.                 mode option set to "
  88. DOC", the entire group of lines
  89.                 between the Document Dflts Special Lines will be
  90.                 ignored.  Only the parameter settings in the 
  91. Master
  92. Master file
  93.                 file are used when the Print mode is set to "DOC".
  94. d0120Header/Footer Definition
  95.                 The 
  96. Header and 
  97. Footer Definitions are also duplicated
  98. Footer definition
  99. Header definition
  100.                 here for the same reason as the Parameter duplication.
  101.                 Normally you would not do this.
  102. d0230Header/Footer Method One
  103.                 I generally create a 
  104. PCTYPE.PRO file in a document
  105. PCTYPE.PRO
  106.                 directory which is set specifically for the document I
  107.                 am working on.  Part of the profile file is the
  108.                 Default Header and Footer definitions.  I set these
  109.                 definitions as I want them for the body of the
  110.                 document.  I can then use the "
  111. default hdr/ftr"
  112. Defalut hdr/ftr
  113.                 Special Line to reinitialize the headers to the
  114.                 profile settings in case I want to change them as
  115.                 I did at the beginning of this document.
  116.                 Since your profile header and footer definitions
  117.                 probably don't match these settings, they were
  118.                 included here.
  119. d0230Header/Footer Method Two
  120.                 Another good approach to handling 
  121. Header and 
  122. Footer
  123. Footer definition
  124. Header definition
  125.                 definitions is to include all the definitions in the
  126.                 
  127. Master file.  This keeps them all in one place where
  128. Master file
  129.                 they can easily be changed together and provides
  130.                 visibility for your entire document.  Using this
  131.                 approach there is no need to have any Header or Footer
  132.                 definitions in your files.
  133. d0230Header/Footer Method Three
  134.                 Another method of dealing with 
  135. Header and 
  136. Footer
  137. Footer definition
  138. Header defintion
  139.                 definitions is to include them all in each file of
  140.                 your text.  In this manner, each separate file
  141.                 maintains some independence from the others.
  142.                 The problem with this approach is that if you have a
  143.                 standard setting, if you change the standard you have
  144.                 to make the changes to all the files which reference
  145.                 the standard.
  146.                 Method Two, above, is probably a better approach.
  147.                 Then, if you need to print a file independently, you
  148.                 can always copy the Header and Footer definitions from
  149.                 the 
  150. Master file.
  151. Master file
  152. d0010Creating the Table of Contents
  153.                 The 
  154. Table of Contents is created by setting the 
  155. Print
  156. Print mode
  157. Table of Contents
  158.                 mode option in the 
  159. Print Options window to "
  160. TOC", and
  161. Print options window
  162.                 then pressing 
  163.                 All the headings will be found, passed to 
  164. INDEX.EXE,
  165. Index.exe
  166.                 and the print file referenced in the 
  167. Master file,
  168. Master file
  169.                 
  170. SMPTOC.PCT, will be created.
  171. SMPTOC.PCT
  172. d0010Creating the Index
  173.                 Once the Table of Contents is completed and you are
  174.                 happy with the way it looks, you can create the 
  175. Index
  176. Index file
  177.                 file referenced in the Master file as 
  178. SMPIND.PCT.
  179. SMPIND.PCT
  180.                 To create the Index, set the 
  181. Print mode option in the
  182. Print mode
  183.                 
  184. Print Options window to "
  185. IND" and press 
  186. Print options window
  187.                 All the print markers, there are a number of them
  188.                 sprinkled through this document, will be sent to the
  189.                 
  190. INDEX.EXE program where they will be inspected,
  191. Index.exe
  192.                 sorted, and organized to produce an Index.
  193. d0120Modifying the Index
  194.                 
  195. You will normally want to do some editing of the index
  196. Index file
  197.                 file since it is returned as a single column and it is
  198.                 unlikely that no additions, deletions nor corrections
  199.                 will have to be made.
  200. d0120XREF File
  201.                 Since the 
  202. .XREF line exists in the parameter list in
  203. .XREF
  204.                 the Master file, an 
  205. XREF file will be created with the
  206. XREF file
  207.                 filename XREF on your 
  208. default directory.  This is a
  209. Default directory
  210.                 cross reference file to cross reference the location
  211.                 of 
  212. page numbers in your document with page numbers in
  213. Page numbers
  214.                 your files.  Inspect the file.
  215. d0010Printing the Document
  216.                 Now change the 
  217. Print mode option in the 
  218. Print Options
  219. Print options window
  220. Print mode
  221.                 window to "
  222. DOC" and press 
  223. F10 when the 
  224. Master file is
  225. Master file
  226.                 the current active file in 
  227. PC-Type.  If you like, you
  228. PC-Type II
  229.                 can break out the print into separate files for each
  230.                 
  231. page by setting the "
  232. Output target file" to a filespec
  233. Output target file
  234. Page breakout
  235.                 on your disk with an extension of "
  236. .###".  You can
  237.                 print the entire file to disk by setting the target
  238.                 file to any 
  239. filespec on your disk.  You can send the
  240. Filespec
  241.                 output to your printer by specifying 
  242. LPT1 as the
  243.                 target file.
  244.                 Or you  can just view the document on your screen as
  245.                 it would appear if it were printed.  To do this, set
  246.                 the 
  247. Print mode to "
  248. VWD" and press 
  249. Print mode
  250. d0010Single File Output
  251.                 You could edit the file 
  252. SMPDC2.PCT, make some minor
  253. SMPDC2.PCT
  254.                 changes, and print it separately by selecting the
  255.                 
  256. Print mode "
  257. STD", or you could view it by selecting
  258. Print mode
  259.                 the "
  260. VWS" Print mode option and pressing 
  261.